<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
	class Gcalib {
		
		public function verify_user_type($user){
		$user = strtolower($user);
		$login_array = array('president', 'administrator', 'dean', 'registrar', 'finance', 'hrd', 'teacher', 'librarian', 'custodian', 'cashier', 'assistant', 'student', 'lg');
		$usertype = null;
		for($i = 0; $i <= count($login_array)-1; $i++){
			if($user == $login_array[$i]){
				$usertype = $user;
				break;
			}
		}
		
		if($usertype) 
			return $usertype;
		else 
			return false;

	}
	}
?>